Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create mock.nf in project folder instead of meta folder #198

Merged
merged 5 commits into from
May 14, 2024
Merged

Conversation

lukfor
Copy link
Collaborator

@lukfor lukfor commented Feb 3, 2024

This PR introduces the creation of the mock.nf file in the project folder (instead of the meta folder) to preserve Nextflow's projectDir. The mock file has a unique name (.nf-test-${test-hash}.nf) and after execution, the file is moved to the meta folder for debugging purposes. Consequently, there's no longer a need to stage files to the meta directory.

This PR addresses the following issues:

Additionally, this change could resolve the issue:

@k1sauce
Copy link

k1sauce commented Apr 5, 2024

This will fix an issue I've have with relative imports of modules, for example having something like this in a workflow

include { FASTQC } from "${projectDir}/modules/nf-core/fastqc"

Will not work in the meta dir when projectDir isn't resolved to the top level

@lukfor lukfor merged commit 8172c5d into main May 14, 2024
12 checks passed
@lukfor lukfor deleted the fixes/mock-file branch May 14, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants